gl: Don't require too large texture for offsreen ops
authorAlexander Larsson <alexl@redhat.com>
Tue, 11 Feb 2020 12:01:27 +0000 (13:01 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 11 Feb 2020 12:50:35 +0000 (13:50 +0100)
commit8fdb710c0fb0e01018b25109d65d29195a39b490
treedd6e9a0ab46919ab6837b2929819031722fc319d
parentaf98c46d04d86e192349d20711d36dbb1de9bc9d
gl: Don't require too large texture for offsreen ops

When rendering ops to an offscreen texture we take max-texture-size
in consideration and modify the scale we use such that the required
texture does not exceed the limit.

This means some rendering will be blocky/fuzzy, but that is better
than it being clipped.
gsk/gl/gskglrenderer.c